local tiefutu = fk.CreateSkill{
    name = "lingling__tiefutu",
    tags = {Skill.Compulsory}
}
Fk:loadTranslationTable{
    ["lingling__tiefutu"] = "铁浮屠",
    [":lingling__tiefutu"] = "锁定技，当你使用【杀】时，若你有护甲，你减1点护甲使之无法抵消、无视防具。当你受到大于1点的伤害时，只减1点护甲。",
}

tiefutu:addEffect(fk.CardUsing,{
    anim_type = "offensive",
    can_trigger = function (self, event, target, player, data)
        return player == target and data.card.trueName == "slash" and player:hasSkill(tiefutu.name) and player.shield > 0
    end,
    on_use = function (self, event, target, player, data)
        local room = player.room
        room:changeShield(player, -1)
        data.unoffsetableList = table.simpleClone(room.players)
        for _, p in ipairs(room.alive_players) do
            room:addTableMark(p, MarkEnum.MarkArmorInvalidFrom, player.id)
        end
        room.logic:getCurrentEvent():findParent(GameEvent.UseCard, true):addCleaner(function()
            for _, p in ipairs(room.alive_players) do
                room:removeTableMark(p, MarkEnum.MarkArmorInvalidFrom, player.id)
            end
        end)
    end,
})

tiefutu:addEffect(fk.BeforeHpChanged, {
    anim_type = "defensive",
    can_trigger = function (self, event, target, player, data)
        return player == target and player:hasSkill(tiefutu.name) and data.shield_lost > 1
    end,
    on_use = function (self, event, target, player, data)
        data.shield_lost = 1
        data.num = 0
    end,
})

return tiefutu